package com.yc.role.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yc.base.BaseService;
import com.yc.role.entity.RoleMenuRelation;

import java.util.List;

/**
 * <p>
 * 后台角色和菜单关系表 服务类
 * </p>
 *
 * @author bao
 * @since 2021-12-09
 */
public interface IRoleMenuRelationService extends BaseService<RoleMenuRelation> {

    boolean create(RoleMenuRelation roleMenuRelation);

    boolean createBatch(Long roleId, List<RoleMenuRelation> roleMenuRelationList);

    boolean delete(List<Long> ids);

    boolean update(RoleMenuRelation roleMenuRelation);

    RoleMenuRelation queryById(Long id);

    List<RoleMenuRelation> selectList(Long roleId);

    Page<RoleMenuRelation> selectPage(Integer pageNum, Integer pageSize);

    boolean deleteByRoleId(Long roleId);
}
